//
//  WMMeetingDetailTableView.m
//  witMorning
//
//  Created by Mac mini on 2018/1/4.
//  Copyright © 2018年 zt. All rights reserved.
//

#import "WMMeetingDetailTableView.h"
#import "WMMeetingDetailTableViewCell.h"

@implementation WMMeetingDetailTableView

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 200;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString *identifier = @"single";
    UINib *nib = [UINib nibWithNibName:@"WMMeetingDetailTableViewCell" bundle:nil]
    ;
    [self registerNib:nib forCellReuseIdentifier:identifier];
    
    WMMeetingDetailTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    
    cell.createor.text = self.array[indexPath.row][@"createor"];
    cell.orgDept.text = self.array[indexPath.row][@"orgDept"];
    cell.holdDate.text = self.array[indexPath.row][@"holdDate"];
    cell.finishDate.text = self.array[indexPath.row][@"finishDate"];
    
    if (!cell) {
        cell = [[WMMeetingDetailTableViewCell alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, 200)];
        
    }
    return cell;
}

@end
